package org.jflame.web.spring.jackson;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * jackson动态过滤属性注解
 * 
 * @author zyc
 */
@Target({ ElementType.METHOD,ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface JacksonFilter {

    Class<?> type();

    /**
     * 排除或指定的属性,多个以逗号分隔
     * 
     * @return
     */
    String exclude() default "";

    /**
     * 只包含的属性,多个以逗号分隔.与exclude同时存在时优先include
     * 
     * @return
     */
    String include() default "";
}
